package PTA3.ti20;

import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String input= scanner.nextLine();
        int letterCount=0;
        int spaceCount=0;
        int digitCount=0;
        int otherCount=0;
        for(int i=0;i<input.length();i++){
            char c=input.charAt(i);
            if(Character.isLetter(c)){
                letterCount++;
            }
            else if(Character.isDigit(c)){
                digitCount++;
            }
            else if(Character.isWhitespace(c)){
                spaceCount++;
            }
            else{
                otherCount++;
            }
        }
        System.out.println("字母："+letterCount);
        System.out.println("数字："+digitCount);
        System.out.println("空格："+spaceCount);
        System.out.println("其他："+otherCount);
        scanner.close();
    }
}
